package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.Set;


@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AppProperties {
//    @ApiModelProperty(value = "应用appId")
    private String appId;
//    @ApiModelProperty(value = "应用名称")
    private String appName;
//    @ApiModelProperty(value = "轨迹上报地址")
    private String trackUrl;
//    @ApiModelProperty(value = "轨迹上报秘钥")
    private String trackSecretKey;
//    @ApiModelProperty(value = "渠道信息")
    private String channel;
//    @ApiModelProperty(value = "总线列表")
//    private List<BusProperties> busList;
//    @ApiModelProperty(value = "总线Map")
    private Map<String,String> busMap;
//    @ApiModelProperty(value = "接收token")
    private List<String> receiveToken;
//    @ApiModelProperty(value = "渠道对应配置")
    private CloudChannelProperties channelProperties;

    private Set<String> ips;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
//    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime lastTime;

}
